package com.qianxing.utils;

/**
 * @Author:JasonLong
 * @Date:2023/7/7
 * @Time:8:38
 */
public class RedisContanct {
    //Redis存储登录验证码的key
    public static final String LOGIN_CODE_KEY = "login:code:";
    //有效期2L=2分钟
    public static final Long LOGIN_CODE_TTL = 2L;
    //Redis存储用户Token的Key
    public static final String LOGIN_USER_KEY = "login:token:";

    public static final String LOGIN_TOKEN = "token:";
    //用户Token有效期时间为36000毫秒

    //当前登录用户
    public static final String LOGIN_USER_ID = "login:user:";
    //用户登录后Token的有效期
    public static final Long LOGIN_USER_TTL = 180L;

    public static final String LOCK_KEY = "lock:";

    public static final String MSG_DATA_ALL = "msg:data:";

    public static final String CURRENT_MSG_ID = "msg:msgId:";

    public static final String MSG_REVIEW_ID = "msg:review:";

    public static final String REVIEW_LOCK = "review:lock:";
}
